{% extends 'database/base.html' %}
{% load my_tags %}

{% block title_content %}创建食堂{% endblock %}

{% block body_content %}
  <h1 class="display-1">创建食堂</h1>
  <form action="{% url 'delivery_database:canteen_create' adm_id %}" method="post">
    {% csrf_token %}
  <div class="row mb-3">
    <label>ID：</label>
    <input type="text" name="id" class="form-control">
  </div>
    <div class="row mb-3">
    <label>名字：</label>
      <input type="text" name="name" class="form-control">
  </div>
    <div class="row mb-3">
    <label>地址：</label>
      <input type="text" name="address" class="form-control">
  </div>
    <div class="row mb-3">
    <label>电话号：</label>
      <input type="number" name="telNum" class="form-control">
  </div>

    <input type="text" style="display:none" value="{{adm_id}}" id="param" name="adm_id">
  <p><button class="btn btn-primary" type="submit">创建</button></p>
  </form>
{% endblock %}